#!/usr/bin/env ruby
require 'rubygems'
require 'daemons/rails/config'

config = Daemons::Rails::Config.for_controller(File.expand_path(__FILE__))

config[:app_name] = 'peatio:amqp:withdraw_coin'
config[:script]   = "#{File.expand_path('../amqp_daemon.rb', __FILE__)}"
config[:ARGV]     = ARGV + %w(-- withdraw_coin)

Daemons::Rails.run config[:script], config.to_hash
